<T:ViewBase x:Class="WPFExcelReport.TDRAUFTR"
                    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
                    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
                     xmlns:ucd="clr-namespace:ReflectionStudio.Controls;assembly=ReflectionStudio.Controls"     
                    xmlns:me="clr-namespace:WPFExcelReport" 
                    xmlns:T="clr-namespace:WPFExcelReport;assembly=IntexBL" 
                    xmlns:SD="clr-namespace:WPFExcelReport;assembly=TSDDAT"   
                    xmlns:ex="clr-namespace:WPFExcelReport.Controls;assembly=ExControls"  
                    xmlns:Localization="clr-namespace:Localization;assembly=Localization"
                    Background="White"  
                    Name="TV"
                    Loaded="Window_Loaded"
     >
    <T:ViewBase.Resources>
        <CollectionViewSource  x:Key="vwMaster"/>       <CollectionViewSource  x:Key="vwDetail"/>
        <ucd:BoolToVisibilityConverter  x:Key="bv"/>
        <ucd:GB2312Convert8859P1  x:Key="gb2312"/>
    </T:ViewBase.Resources>
    <WrapPanel>
        <Grid  VerticalAlignment="Top">
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="Auto"></ColumnDefinition>
                <ColumnDefinition Width="Auto"></ColumnDefinition>
            </Grid.ColumnDefinitions>
            <TextBlock Grid.Column="0" Text="{Binding Source={Localization:Translate Word=份数}}" Visibility="Collapsed"/>
            <ex:NumericBox Grid.Column="1" Text="{Binding COPYS,ElementName=TV}"/> 
        </Grid>
        <Button Margin="10,0,0,0" Content="P" Click="PrintCommand" Visibility="Collapsed"/>
        <Button Margin="10,0,0,0"  Content="V" Click="PrintViewCommand" Visibility="Collapsed"/>
        <Expander IsExpanded="False" ExpandDirection="Right"  VerticalAlignment="Top" Height="24" Margin="0,0,0,0" Visibility="Collapsed">
            <WrapPanel>
                <Grid  VerticalAlignment="Top">
                    <Grid.ColumnDefinitions>
                        <ColumnDefinition Width="Auto"></ColumnDefinition>
                        <ColumnDefinition Width="Auto"></ColumnDefinition>
                    </Grid.ColumnDefinitions>
                    <TextBlock Grid.Column="0" Text="{Binding Source={Localization:Translate Word=格式}}"/>
                    <ex:TXT72 Grid.Column="1" Text="{Binding DocType,ElementName=TV}"/>
                </Grid>
            </WrapPanel>
        </Expander>
    </WrapPanel>
</T:ViewBase>
